↳ PROLOG
↳ PrologToPiTRSProof
With regard to the inferred argument filtering the predicates were used in the following modes:
perm2: (b,f)
app3: (f,f,b) (b,b,f)
Transforming PROLOG into the following Term Rewriting System:
Pi-finite rewrite system:
The TRS R consists of the following rules:
perm_2_in_ga2(Xs, ._22(X, Ys)) -> if_perm_2_in_1_ga4(Xs, X, Ys, app_3_in_aag3(X1s, ._22(X, X2s), Xs))
app_3_in_aag3(._22(X, Xs), Ys, ._22(X, Zs)) -> if_app_3_in_1_aag5(X, Xs, Ys, Zs, app_3_in_aag3(Xs, Ys, Zs))
app_3_in_aag3([]_0, Ys, Ys) -> app_3_out_aag3([]_0, Ys, Ys)
if_app_3_in_1_aag5(X, Xs, Ys, Zs, app_3_out_aag3(Xs, Ys, Zs)) -> app_3_out_aag3(._22(X, Xs), Ys, ._22(X, Zs))
if_perm_2_in_1_ga4(Xs, X, Ys, app_3_out_aag3(X1s, ._22(X, X2s), Xs)) -> if_perm_2_in_2_ga6(Xs, X, Ys, X1s, X2s, app_3_in_gga3(X1s, X2s, Zs))
app_3_in_gga3(._22(X, Xs), Ys, ._22(X, Zs)) -> if_app_3_in_1_gga5(X, Xs, Ys, Zs, app_3_in_gga3(Xs, Ys, Zs))
app_3_in_gga3([]_0, Ys, Ys) -> app_3_out_gga3([]_0, Ys, Ys)
if_app_3_in_1_gga5(X, Xs, Ys, Zs, app_3_out_gga3(Xs, Ys, Zs)) -> app_3_out_gga3(._22(X, Xs), Ys, ._22(X, Zs))
if_perm_2_in_2_ga6(Xs, X, Ys, X1s, X2s, app_3_out_gga3(X1s, X2s, Zs)) -> if_perm_2_in_3_ga5(Xs, X, Ys, Zs, perm_2_in_ga2(Zs, Ys))
perm_2_in_ga2([]_0, []_0) -> perm_2_out_ga2([]_0, []_0)
if_perm_2_in_3_ga5(Xs, X, Ys, Zs, perm_2_out_ga2(Zs, Ys)) -> perm_2_out_ga2(Xs, ._22(X, Ys))
Infinitary Constructor Rewriting Termination of PiTRS implies Termination of PROLOG
↳ PROLOG
↳ PrologToPiTRSProof
↳ PiTRS
↳ DependencyPairsProof
perm_2_in_ga2(Xs, ._22(X, Ys)) -> if_perm_2_in_1_ga4(Xs, X, Ys, app_3_in_aag3(X1s, ._22(X, X2s), Xs))
app_3_in_aag3(._22(X, Xs), Ys, ._22(X, Zs)) -> if_app_3_in_1_aag5(X, Xs, Ys, Zs, app_3_in_aag3(Xs, Ys, Zs))
app_3_in_aag3([]_0, Ys, Ys) -> app_3_out_aag3([]_0, Ys, Ys)
if_app_3_in_1_aag5(X, Xs, Ys, Zs, app_3_out_aag3(Xs, Ys, Zs)) -> app_3_out_aag3(._22(X, Xs), Ys, ._22(X, Zs))
if_perm_2_in_1_ga4(Xs, X, Ys, app_3_out_aag3(X1s, ._22(X, X2s), Xs)) -> if_perm_2_in_2_ga6(Xs, X, Ys, X1s, X2s, app_3_in_gga3(X1s, X2s, Zs))
app_3_in_gga3(._22(X, Xs), Ys, ._22(X, Zs)) -> if_app_3_in_1_gga5(X, Xs, Ys, Zs, app_3_in_gga3(Xs, Ys, Zs))
app_3_in_gga3([]_0, Ys, Ys) -> app_3_out_gga3([]_0, Ys, Ys)
if_app_3_in_1_gga5(X, Xs, Ys, Zs, app_3_out_gga3(Xs, Ys, Zs)) -> app_3_out_gga3(._22(X, Xs), Ys, ._22(X, Zs))
if_perm_2_in_2_ga6(Xs, X, Ys, X1s, X2s, app_3_out_gga3(X1s, X2s, Zs)) -> if_perm_2_in_3_ga5(Xs, X, Ys, Zs, perm_2_in_ga2(Zs, Ys))
perm_2_in_ga2([]_0, []_0) -> perm_2_out_ga2([]_0, []_0)
if_perm_2_in_3_ga5(Xs, X, Ys, Zs, perm_2_out_ga2(Zs, Ys)) -> perm_2_out_ga2(Xs, ._22(X, Ys))
PERM_2_IN_GA2(Xs, ._22(X, Ys)) -> IF_PERM_2_IN_1_GA4(Xs, X, Ys, app_3_in_aag3(X1s, ._22(X, X2s), Xs))
PERM_2_IN_GA2(Xs, ._22(X, Ys)) -> APP_3_IN_AAG3(X1s, ._22(X, X2s), Xs)
APP_3_IN_AAG3(._22(X, Xs), Ys, ._22(X, Zs)) -> IF_APP_3_IN_1_AAG5(X, Xs, Ys, Zs, app_3_in_aag3(Xs, Ys, Zs))
APP_3_IN_AAG3(._22(X, Xs), Ys, ._22(X, Zs)) -> APP_3_IN_AAG3(Xs, Ys, Zs)
IF_PERM_2_IN_1_GA4(Xs, X, Ys, app_3_out_aag3(X1s, ._22(X, X2s), Xs)) -> IF_PERM_2_IN_2_GA6(Xs, X, Ys, X1s, X2s, app_3_in_gga3(X1s, X2s, Zs))
IF_PERM_2_IN_1_GA4(Xs, X, Ys, app_3_out_aag3(X1s, ._22(X, X2s), Xs)) -> APP_3_IN_GGA3(X1s, X2s, Zs)
APP_3_IN_GGA3(._22(X, Xs), Ys, ._22(X, Zs)) -> IF_APP_3_IN_1_GGA5(X, Xs, Ys, Zs, app_3_in_gga3(Xs, Ys, Zs))
APP_3_IN_GGA3(._22(X, Xs), Ys, ._22(X, Zs)) -> APP_3_IN_GGA3(Xs, Ys, Zs)
IF_PERM_2_IN_2_GA6(Xs, X, Ys, X1s, X2s, app_3_out_gga3(X1s, X2s, Zs)) -> IF_PERM_2_IN_3_GA5(Xs, X, Ys, Zs, perm_2_in_ga2(Zs, Ys))
IF_PERM_2_IN_2_GA6(Xs, X, Ys, X1s, X2s, app_3_out_gga3(X1s, X2s, Zs)) -> PERM_2_IN_GA2(Zs, Ys)
perm_2_in_ga2(Xs, ._22(X, Ys)) -> if_perm_2_in_1_ga4(Xs, X, Ys, app_3_in_aag3(X1s, ._22(X, X2s), Xs))
app_3_in_aag3(._22(X, Xs), Ys, ._22(X, Zs)) -> if_app_3_in_1_aag5(X, Xs, Ys, Zs, app_3_in_aag3(Xs, Ys, Zs))
app_3_in_aag3([]_0, Ys, Ys) -> app_3_out_aag3([]_0, Ys, Ys)
if_app_3_in_1_aag5(X, Xs, Ys, Zs, app_3_out_aag3(Xs, Ys, Zs)) -> app_3_out_aag3(._22(X, Xs), Ys, ._22(X, Zs))
if_perm_2_in_1_ga4(Xs, X, Ys, app_3_out_aag3(X1s, ._22(X, X2s), Xs)) -> if_perm_2_in_2_ga6(Xs, X, Ys, X1s, X2s, app_3_in_gga3(X1s, X2s, Zs))
app_3_in_gga3(._22(X, Xs), Ys, ._22(X, Zs)) -> if_app_3_in_1_gga5(X, Xs, Ys, Zs, app_3_in_gga3(Xs, Ys, Zs))
app_3_in_gga3([]_0, Ys, Ys) -> app_3_out_gga3([]_0, Ys, Ys)
if_app_3_in_1_gga5(X, Xs, Ys, Zs, app_3_out_gga3(Xs, Ys, Zs)) -> app_3_out_gga3(._22(X, Xs), Ys, ._22(X, Zs))
if_perm_2_in_2_ga6(Xs, X, Ys, X1s, X2s, app_3_out_gga3(X1s, X2s, Zs)) -> if_perm_2_in_3_ga5(Xs, X, Ys, Zs, perm_2_in_ga2(Zs, Ys))
perm_2_in_ga2([]_0, []_0) -> perm_2_out_ga2([]_0, []_0)
if_perm_2_in_3_ga5(Xs, X, Ys, Zs, perm_2_out_ga2(Zs, Ys)) -> perm_2_out_ga2(Xs, ._22(X, Ys))
↳ PROLOG
↳ PrologToPiTRSProof
↳ PiTRS
↳ DependencyPairsProof
↳ PiDP
↳ DependencyGraphProof
PERM_2_IN_GA2(Xs, ._22(X, Ys)) -> IF_PERM_2_IN_1_GA4(Xs, X, Ys, app_3_in_aag3(X1s, ._22(X, X2s), Xs))
PERM_2_IN_GA2(Xs, ._22(X, Ys)) -> APP_3_IN_AAG3(X1s, ._22(X, X2s), Xs)
APP_3_IN_AAG3(._22(X, Xs), Ys, ._22(X, Zs)) -> IF_APP_3_IN_1_AAG5(X, Xs, Ys, Zs, app_3_in_aag3(Xs, Ys, Zs))
APP_3_IN_AAG3(._22(X, Xs), Ys, ._22(X, Zs)) -> APP_3_IN_AAG3(Xs, Ys, Zs)
IF_PERM_2_IN_1_GA4(Xs, X, Ys, app_3_out_aag3(X1s, ._22(X, X2s), Xs)) -> IF_PERM_2_IN_2_GA6(Xs, X, Ys, X1s, X2s, app_3_in_gga3(X1s, X2s, Zs))
IF_PERM_2_IN_1_GA4(Xs, X, Ys, app_3_out_aag3(X1s, ._22(X, X2s), Xs)) -> APP_3_IN_GGA3(X1s, X2s, Zs)
APP_3_IN_GGA3(._22(X, Xs), Ys, ._22(X, Zs)) -> IF_APP_3_IN_1_GGA5(X, Xs, Ys, Zs, app_3_in_gga3(Xs, Ys, Zs))
APP_3_IN_GGA3(._22(X, Xs), Ys, ._22(X, Zs)) -> APP_3_IN_GGA3(Xs, Ys, Zs)
IF_PERM_2_IN_2_GA6(Xs, X, Ys, X1s, X2s, app_3_out_gga3(X1s, X2s, Zs)) -> IF_PERM_2_IN_3_GA5(Xs, X, Ys, Zs, perm_2_in_ga2(Zs, Ys))
IF_PERM_2_IN_2_GA6(Xs, X, Ys, X1s, X2s, app_3_out_gga3(X1s, X2s, Zs)) -> PERM_2_IN_GA2(Zs, Ys)
perm_2_in_ga2(Xs, ._22(X, Ys)) -> if_perm_2_in_1_ga4(Xs, X, Ys, app_3_in_aag3(X1s, ._22(X, X2s), Xs))
app_3_in_aag3(._22(X, Xs), Ys, ._22(X, Zs)) -> if_app_3_in_1_aag5(X, Xs, Ys, Zs, app_3_in_aag3(Xs, Ys, Zs))
app_3_in_aag3([]_0, Ys, Ys) -> app_3_out_aag3([]_0, Ys, Ys)
if_app_3_in_1_aag5(X, Xs, Ys, Zs, app_3_out_aag3(Xs, Ys, Zs)) -> app_3_out_aag3(._22(X, Xs), Ys, ._22(X, Zs))
if_perm_2_in_1_ga4(Xs, X, Ys, app_3_out_aag3(X1s, ._22(X, X2s), Xs)) -> if_perm_2_in_2_ga6(Xs, X, Ys, X1s, X2s, app_3_in_gga3(X1s, X2s, Zs))
app_3_in_gga3(._22(X, Xs), Ys, ._22(X, Zs)) -> if_app_3_in_1_gga5(X, Xs, Ys, Zs, app_3_in_gga3(Xs, Ys, Zs))
app_3_in_gga3([]_0, Ys, Ys) -> app_3_out_gga3([]_0, Ys, Ys)
if_app_3_in_1_gga5(X, Xs, Ys, Zs, app_3_out_gga3(Xs, Ys, Zs)) -> app_3_out_gga3(._22(X, Xs), Ys, ._22(X, Zs))
if_perm_2_in_2_ga6(Xs, X, Ys, X1s, X2s, app_3_out_gga3(X1s, X2s, Zs)) -> if_perm_2_in_3_ga5(Xs, X, Ys, Zs, perm_2_in_ga2(Zs, Ys))
perm_2_in_ga2([]_0, []_0) -> perm_2_out_ga2([]_0, []_0)
if_perm_2_in_3_ga5(Xs, X, Ys, Zs, perm_2_out_ga2(Zs, Ys)) -> perm_2_out_ga2(Xs, ._22(X, Ys))
↳ PROLOG
↳ PrologToPiTRSProof
↳ PiTRS
↳ DependencyPairsProof
↳ PiDP
↳ DependencyGraphProof
↳ AND
↳ PiDP
↳ UsableRulesProof
↳ PiDP
↳ PiDP
APP_3_IN_GGA3(._22(X, Xs), Ys, ._22(X, Zs)) -> APP_3_IN_GGA3(Xs, Ys, Zs)
perm_2_in_ga2(Xs, ._22(X, Ys)) -> if_perm_2_in_1_ga4(Xs, X, Ys, app_3_in_aag3(X1s, ._22(X, X2s), Xs))
app_3_in_aag3(._22(X, Xs), Ys, ._22(X, Zs)) -> if_app_3_in_1_aag5(X, Xs, Ys, Zs, app_3_in_aag3(Xs, Ys, Zs))
app_3_in_aag3([]_0, Ys, Ys) -> app_3_out_aag3([]_0, Ys, Ys)
if_app_3_in_1_aag5(X, Xs, Ys, Zs, app_3_out_aag3(Xs, Ys, Zs)) -> app_3_out_aag3(._22(X, Xs), Ys, ._22(X, Zs))
if_perm_2_in_1_ga4(Xs, X, Ys, app_3_out_aag3(X1s, ._22(X, X2s), Xs)) -> if_perm_2_in_2_ga6(Xs, X, Ys, X1s, X2s, app_3_in_gga3(X1s, X2s, Zs))
app_3_in_gga3(._22(X, Xs), Ys, ._22(X, Zs)) -> if_app_3_in_1_gga5(X, Xs, Ys, Zs, app_3_in_gga3(Xs, Ys, Zs))
app_3_in_gga3([]_0, Ys, Ys) -> app_3_out_gga3([]_0, Ys, Ys)
if_app_3_in_1_gga5(X, Xs, Ys, Zs, app_3_out_gga3(Xs, Ys, Zs)) -> app_3_out_gga3(._22(X, Xs), Ys, ._22(X, Zs))
if_perm_2_in_2_ga6(Xs, X, Ys, X1s, X2s, app_3_out_gga3(X1s, X2s, Zs)) -> if_perm_2_in_3_ga5(Xs, X, Ys, Zs, perm_2_in_ga2(Zs, Ys))
perm_2_in_ga2([]_0, []_0) -> perm_2_out_ga2([]_0, []_0)
if_perm_2_in_3_ga5(Xs, X, Ys, Zs, perm_2_out_ga2(Zs, Ys)) -> perm_2_out_ga2(Xs, ._22(X, Ys))
↳ PROLOG
↳ PrologToPiTRSProof
↳ PiTRS
↳ DependencyPairsProof
↳ PiDP
↳ DependencyGraphProof
↳ AND
↳ PiDP
↳ UsableRulesProof
↳ PiDP
↳ PiDPToQDPProof
↳ PiDP
↳ PiDP
APP_3_IN_GGA3(._22(X, Xs), Ys, ._22(X, Zs)) -> APP_3_IN_GGA3(Xs, Ys, Zs)
↳ PROLOG
↳ PrologToPiTRSProof
↳ PiTRS
↳ DependencyPairsProof
↳ PiDP
↳ DependencyGraphProof
↳ AND
↳ PiDP
↳ UsableRulesProof
↳ PiDP
↳ PiDPToQDPProof
↳ QDP
↳ QDPSizeChangeProof
↳ PiDP
↳ PiDP
APP_3_IN_GGA2(._22(X, Xs), Ys) -> APP_3_IN_GGA2(Xs, Ys)
From the DPs we obtained the following set of size-change graphs:
↳ PROLOG
↳ PrologToPiTRSProof
↳ PiTRS
↳ DependencyPairsProof
↳ PiDP
↳ DependencyGraphProof
↳ AND
↳ PiDP
↳ PiDP
↳ UsableRulesProof
↳ PiDP
APP_3_IN_AAG3(._22(X, Xs), Ys, ._22(X, Zs)) -> APP_3_IN_AAG3(Xs, Ys, Zs)
perm_2_in_ga2(Xs, ._22(X, Ys)) -> if_perm_2_in_1_ga4(Xs, X, Ys, app_3_in_aag3(X1s, ._22(X, X2s), Xs))
app_3_in_aag3(._22(X, Xs), Ys, ._22(X, Zs)) -> if_app_3_in_1_aag5(X, Xs, Ys, Zs, app_3_in_aag3(Xs, Ys, Zs))
app_3_in_aag3([]_0, Ys, Ys) -> app_3_out_aag3([]_0, Ys, Ys)
if_app_3_in_1_aag5(X, Xs, Ys, Zs, app_3_out_aag3(Xs, Ys, Zs)) -> app_3_out_aag3(._22(X, Xs), Ys, ._22(X, Zs))
if_perm_2_in_1_ga4(Xs, X, Ys, app_3_out_aag3(X1s, ._22(X, X2s), Xs)) -> if_perm_2_in_2_ga6(Xs, X, Ys, X1s, X2s, app_3_in_gga3(X1s, X2s, Zs))
app_3_in_gga3(._22(X, Xs), Ys, ._22(X, Zs)) -> if_app_3_in_1_gga5(X, Xs, Ys, Zs, app_3_in_gga3(Xs, Ys, Zs))
app_3_in_gga3([]_0, Ys, Ys) -> app_3_out_gga3([]_0, Ys, Ys)
if_app_3_in_1_gga5(X, Xs, Ys, Zs, app_3_out_gga3(Xs, Ys, Zs)) -> app_3_out_gga3(._22(X, Xs), Ys, ._22(X, Zs))
if_perm_2_in_2_ga6(Xs, X, Ys, X1s, X2s, app_3_out_gga3(X1s, X2s, Zs)) -> if_perm_2_in_3_ga5(Xs, X, Ys, Zs, perm_2_in_ga2(Zs, Ys))
perm_2_in_ga2([]_0, []_0) -> perm_2_out_ga2([]_0, []_0)
if_perm_2_in_3_ga5(Xs, X, Ys, Zs, perm_2_out_ga2(Zs, Ys)) -> perm_2_out_ga2(Xs, ._22(X, Ys))
↳ PROLOG
↳ PrologToPiTRSProof
↳ PiTRS
↳ DependencyPairsProof
↳ PiDP
↳ DependencyGraphProof
↳ AND
↳ PiDP
↳ PiDP
↳ UsableRulesProof
↳ PiDP
↳ PiDPToQDPProof
↳ PiDP
APP_3_IN_AAG3(._22(X, Xs), Ys, ._22(X, Zs)) -> APP_3_IN_AAG3(Xs, Ys, Zs)
↳ PROLOG
↳ PrologToPiTRSProof
↳ PiTRS
↳ DependencyPairsProof
↳ PiDP
↳ DependencyGraphProof
↳ AND
↳ PiDP
↳ PiDP
↳ UsableRulesProof
↳ PiDP
↳ PiDPToQDPProof
↳ QDP
↳ QDPSizeChangeProof
↳ PiDP
APP_3_IN_AAG1(._22(X, Zs)) -> APP_3_IN_AAG1(Zs)
From the DPs we obtained the following set of size-change graphs:
↳ PROLOG
↳ PrologToPiTRSProof
↳ PiTRS
↳ DependencyPairsProof
↳ PiDP
↳ DependencyGraphProof
↳ AND
↳ PiDP
↳ PiDP
↳ PiDP
↳ UsableRulesProof
IF_PERM_2_IN_2_GA6(Xs, X, Ys, X1s, X2s, app_3_out_gga3(X1s, X2s, Zs)) -> PERM_2_IN_GA2(Zs, Ys)
PERM_2_IN_GA2(Xs, ._22(X, Ys)) -> IF_PERM_2_IN_1_GA4(Xs, X, Ys, app_3_in_aag3(X1s, ._22(X, X2s), Xs))
IF_PERM_2_IN_1_GA4(Xs, X, Ys, app_3_out_aag3(X1s, ._22(X, X2s), Xs)) -> IF_PERM_2_IN_2_GA6(Xs, X, Ys, X1s, X2s, app_3_in_gga3(X1s, X2s, Zs))
perm_2_in_ga2(Xs, ._22(X, Ys)) -> if_perm_2_in_1_ga4(Xs, X, Ys, app_3_in_aag3(X1s, ._22(X, X2s), Xs))
app_3_in_aag3(._22(X, Xs), Ys, ._22(X, Zs)) -> if_app_3_in_1_aag5(X, Xs, Ys, Zs, app_3_in_aag3(Xs, Ys, Zs))
app_3_in_aag3([]_0, Ys, Ys) -> app_3_out_aag3([]_0, Ys, Ys)
if_app_3_in_1_aag5(X, Xs, Ys, Zs, app_3_out_aag3(Xs, Ys, Zs)) -> app_3_out_aag3(._22(X, Xs), Ys, ._22(X, Zs))
if_perm_2_in_1_ga4(Xs, X, Ys, app_3_out_aag3(X1s, ._22(X, X2s), Xs)) -> if_perm_2_in_2_ga6(Xs, X, Ys, X1s, X2s, app_3_in_gga3(X1s, X2s, Zs))
app_3_in_gga3(._22(X, Xs), Ys, ._22(X, Zs)) -> if_app_3_in_1_gga5(X, Xs, Ys, Zs, app_3_in_gga3(Xs, Ys, Zs))
app_3_in_gga3([]_0, Ys, Ys) -> app_3_out_gga3([]_0, Ys, Ys)
if_app_3_in_1_gga5(X, Xs, Ys, Zs, app_3_out_gga3(Xs, Ys, Zs)) -> app_3_out_gga3(._22(X, Xs), Ys, ._22(X, Zs))
if_perm_2_in_2_ga6(Xs, X, Ys, X1s, X2s, app_3_out_gga3(X1s, X2s, Zs)) -> if_perm_2_in_3_ga5(Xs, X, Ys, Zs, perm_2_in_ga2(Zs, Ys))
perm_2_in_ga2([]_0, []_0) -> perm_2_out_ga2([]_0, []_0)
if_perm_2_in_3_ga5(Xs, X, Ys, Zs, perm_2_out_ga2(Zs, Ys)) -> perm_2_out_ga2(Xs, ._22(X, Ys))
↳ PROLOG
↳ PrologToPiTRSProof
↳ PiTRS
↳ DependencyPairsProof
↳ PiDP
↳ DependencyGraphProof
↳ AND
↳ PiDP
↳ PiDP
↳ PiDP
↳ UsableRulesProof
↳ PiDP
↳ PiDPToQDPProof
IF_PERM_2_IN_2_GA6(Xs, X, Ys, X1s, X2s, app_3_out_gga3(X1s, X2s, Zs)) -> PERM_2_IN_GA2(Zs, Ys)
PERM_2_IN_GA2(Xs, ._22(X, Ys)) -> IF_PERM_2_IN_1_GA4(Xs, X, Ys, app_3_in_aag3(X1s, ._22(X, X2s), Xs))
IF_PERM_2_IN_1_GA4(Xs, X, Ys, app_3_out_aag3(X1s, ._22(X, X2s), Xs)) -> IF_PERM_2_IN_2_GA6(Xs, X, Ys, X1s, X2s, app_3_in_gga3(X1s, X2s, Zs))
app_3_in_aag3(._22(X, Xs), Ys, ._22(X, Zs)) -> if_app_3_in_1_aag5(X, Xs, Ys, Zs, app_3_in_aag3(Xs, Ys, Zs))
app_3_in_aag3([]_0, Ys, Ys) -> app_3_out_aag3([]_0, Ys, Ys)
app_3_in_gga3(._22(X, Xs), Ys, ._22(X, Zs)) -> if_app_3_in_1_gga5(X, Xs, Ys, Zs, app_3_in_gga3(Xs, Ys, Zs))
app_3_in_gga3([]_0, Ys, Ys) -> app_3_out_gga3([]_0, Ys, Ys)
if_app_3_in_1_aag5(X, Xs, Ys, Zs, app_3_out_aag3(Xs, Ys, Zs)) -> app_3_out_aag3(._22(X, Xs), Ys, ._22(X, Zs))
if_app_3_in_1_gga5(X, Xs, Ys, Zs, app_3_out_gga3(Xs, Ys, Zs)) -> app_3_out_gga3(._22(X, Xs), Ys, ._22(X, Zs))
↳ PROLOG
↳ PrologToPiTRSProof
↳ PiTRS
↳ DependencyPairsProof
↳ PiDP
↳ DependencyGraphProof
↳ AND
↳ PiDP
↳ PiDP
↳ PiDP
↳ UsableRulesProof
↳ PiDP
↳ PiDPToQDPProof
↳ QDP
↳ RuleRemovalProof
IF_PERM_2_IN_2_GA2(X, app_3_out_gga1(Zs)) -> PERM_2_IN_GA1(Zs)
PERM_2_IN_GA1(Xs) -> IF_PERM_2_IN_1_GA1(app_3_in_aag1(Xs))
IF_PERM_2_IN_1_GA1(app_3_out_aag2(X1s, ._22(X, X2s))) -> IF_PERM_2_IN_2_GA2(X, app_3_in_gga2(X1s, X2s))
app_3_in_aag1(._22(X, Zs)) -> if_app_3_in_1_aag2(X, app_3_in_aag1(Zs))
app_3_in_aag1(Ys) -> app_3_out_aag2([]_0, Ys)
app_3_in_gga2(._22(X, Xs), Ys) -> if_app_3_in_1_gga2(X, app_3_in_gga2(Xs, Ys))
app_3_in_gga2([]_0, Ys) -> app_3_out_gga1(Ys)
if_app_3_in_1_aag2(X, app_3_out_aag2(Xs, Ys)) -> app_3_out_aag2(._22(X, Xs), Ys)
if_app_3_in_1_gga2(X, app_3_out_gga1(Zs)) -> app_3_out_gga1(._22(X, Zs))
app_3_in_aag1(x0)
app_3_in_gga2(x0, x1)
if_app_3_in_1_aag2(x0, x1)
if_app_3_in_1_gga2(x0, x1)
app_3_in_gga2([]_0, Ys) -> app_3_out_gga1(Ys)
POL(._22(x1, x2)) = 1 + x1 + x2
POL(if_app_3_in_1_gga2(x1, x2)) = 1 + x1 + x2
POL(IF_PERM_2_IN_2_GA2(x1, x2)) = 1 + x1 + x2
POL(IF_PERM_2_IN_1_GA1(x1)) = x1
POL(app_3_out_gga1(x1)) = 1 + x1
POL(app_3_in_aag1(x1)) = 2 + x1
POL(app_3_out_aag2(x1, x2)) = x1 + x2
POL(if_app_3_in_1_aag2(x1, x2)) = 1 + x1 + x2
POL([]_0) = 2
POL(app_3_in_gga2(x1, x2)) = x1 + x2
POL(PERM_2_IN_GA1(x1)) = 2 + x1
↳ PROLOG
↳ PrologToPiTRSProof
↳ PiTRS
↳ DependencyPairsProof
↳ PiDP
↳ DependencyGraphProof
↳ AND
↳ PiDP
↳ PiDP
↳ PiDP
↳ UsableRulesProof
↳ PiDP
↳ PiDPToQDPProof
↳ QDP
↳ RuleRemovalProof
↳ QDP
↳ QDPSizeChangeProof
IF_PERM_2_IN_2_GA2(X, app_3_out_gga1(Zs)) -> PERM_2_IN_GA1(Zs)
PERM_2_IN_GA1(Xs) -> IF_PERM_2_IN_1_GA1(app_3_in_aag1(Xs))
IF_PERM_2_IN_1_GA1(app_3_out_aag2(X1s, ._22(X, X2s))) -> IF_PERM_2_IN_2_GA2(X, app_3_in_gga2(X1s, X2s))
app_3_in_aag1(._22(X, Zs)) -> if_app_3_in_1_aag2(X, app_3_in_aag1(Zs))
app_3_in_aag1(Ys) -> app_3_out_aag2([]_0, Ys)
app_3_in_gga2(._22(X, Xs), Ys) -> if_app_3_in_1_gga2(X, app_3_in_gga2(Xs, Ys))
if_app_3_in_1_aag2(X, app_3_out_aag2(Xs, Ys)) -> app_3_out_aag2(._22(X, Xs), Ys)
if_app_3_in_1_gga2(X, app_3_out_gga1(Zs)) -> app_3_out_gga1(._22(X, Zs))
app_3_in_aag1(x0)
app_3_in_gga2(x0, x1)
if_app_3_in_1_aag2(x0, x1)
if_app_3_in_1_gga2(x0, x1)
Order:Polynomial interpretation:
POL(._22(x1, x2)) = x2
POL(if_app_3_in_1_gga2(x1, x2)) = x2
POL(app_3_out_gga1(x1)) = 1 + x1
POL(app_3_in_aag1(x1)) = x1
POL(app_3_out_aag2(x1, x2)) = x2
POL(if_app_3_in_1_aag2(x1, x2)) = x2
POL([]_0) = 0
POL(app_3_in_gga2(x1, x2)) = x2
From the DPs we obtained the following set of size-change graphs:
We oriented the following set of usable rules.
if_app_3_in_1_gga2(X, app_3_out_gga1(Zs)) -> app_3_out_gga1(._22(X, Zs))
if_app_3_in_1_aag2(X, app_3_out_aag2(Xs, Ys)) -> app_3_out_aag2(._22(X, Xs), Ys)
app_3_in_gga2(._22(X, Xs), Ys) -> if_app_3_in_1_gga2(X, app_3_in_gga2(Xs, Ys))
app_3_in_aag1(Ys) -> app_3_out_aag2([]_0, Ys)
app_3_in_aag1(._22(X, Zs)) -> if_app_3_in_1_aag2(X, app_3_in_aag1(Zs))